

import java.util.Collection;
import java.util.Iterator;

/**
 * @uml.dependency   supplier="Carta"
 */
public class Mundo {

	/**
	 * @uml.property  name="jugador"
	 * @uml.associationEnd  inverse="mundo:Jugador"
	 */
	private Jugador jugador;

	/**
	 * Getter of the property <tt>jugador</tt>
	 * @return  Returns the jugador.
	 * @uml.property  name="jugador"
	 */
	public Jugador getJugador() {
		return jugador;
	}

	/**
	 * Setter of the property <tt>jugador</tt>
	 * @param jugador  The jugador to set.
	 * @uml.property  name="jugador"
	 */
	public void setJugador(Jugador jugador) {
		this.jugador = jugador;
	}

	/**
	 * @uml.property  name="tablero"
	 * @uml.associationEnd  inverse="mundo:Tablero"
	 */
	private Tablero tablero;

	/**
	 * Getter of the property <tt>tablero</tt>
	 * @return  Returns the tablero.
	 * @uml.property  name="tablero"
	 */
	public Tablero getTablero() {
		return tablero;
	}

	/**
	 * Setter of the property <tt>tablero</tt>
	 * @param tablero  The tablero to set.
	 * @uml.property  name="tablero"
	 */
	public void setTablero(Tablero tablero) {
		this.tablero = tablero;
	}

	/**
	 * @uml.property  name="tablero1"
	 * @uml.associationEnd  inverse="mundo1:Tablero"
	 */
	private Tablero tablero1;

	/**
	 * Getter of the property <tt>tablero1</tt>
	 * @return  Returns the tablero1.
	 * @uml.property  name="tablero1"
	 */
	public Tablero getTablero1() {
		return tablero1;
	}

	/**
	 * Setter of the property <tt>tablero1</tt>
	 * @param tablero1  The tablero1 to set.
	 * @uml.property  name="tablero1"
	 */
	public void setTablero1(Tablero tablero1) {
		this.tablero1 = tablero1;
	}

	/** 
	 * @uml.property name="carta"
	 * @uml.associationEnd multiplicity="(0 -1)" aggregation="composite" inverse="mundo:Carta"
	 */
	private Collection carta;

	/** 
	 * Getter of the property <tt>carta</tt>
	 * @return  Returns the carta.
	 * @uml.property  name="carta"
	 */
	public Collection getCarta() {
		return carta;
	}

	/**
	 * Returns an iterator over the elements in this collection. 
	 * @return  an <tt>Iterator</tt> over the elements in this collection
	 * @see java.util.Collection#iterator()
	 * @uml.property  name="carta"
	 */
	public Iterator cartaIterator() {
		return carta.iterator();
	}

	/**
	 * Returns <tt>true</tt> if this collection contains no elements.
	 * @return  <tt>true</tt> if this collection contains no elements
	 * @see java.util.Collection#isEmpty()
	 * @uml.property  name="carta"
	 */
	public boolean isCartaEmpty() {
		return carta.isEmpty();
	}

	/**
	 * Returns <tt>true</tt> if this collection contains the specified element. 
	 * @param element  whose presence in this collection is to be tested.
	 * @see java.util.Collection#contains(Object)
	 * @uml.property  name="carta"
	 */
	public boolean containsCarta(Carta carta) {
		return this.carta.contains(carta);
	}

	/**
	 * Returns <tt>true</tt> if this collection contains all of the elements in the specified collection.
	 * @param elements  collection to be checked for containment in this collection.
	 * @see java.util.Collection#containsAll(Collection)
	 * @uml.property  name="carta"
	 */
	public boolean containsAllCarta(Collection carta) {
		return this.carta.containsAll(carta);
	}

	/**
	 * Returns the number of elements in this collection.
	 * @return  the number of elements in this collection
	 * @see java.util.Collection#size()
	 * @uml.property  name="carta"
	 */
	public int cartaSize() {
		return carta.size();
	}

	/**
	 * Returns all elements of this collection in an array.
	 * @return  an array containing all of the elements in this collection
	 * @see java.util.Collection#toArray()
	 * @uml.property  name="carta"
	 */
	public Carta[] cartaToArray() {
		return (Carta[]) carta.toArray(new Carta[carta.size()]);
	}

	/**
	 * Returns an array containing all of the elements in this collection;  the runtime type of the returned array is that of the specified array.
	 * @param a  the array into which the elements of this collection are to be stored.
	 * @return  an array containing all of the elements in this collection
	 * @see java.util.Collection#toArray(Object[])
	 * @uml.property  name="carta"
	 */
	public Carta[] cartaToArray(Carta[] carta) {
		return (Carta[]) this.carta.toArray(carta);
	}

	/**
	 * Ensures that this collection contains the specified element (optional operation). 
	 * @param element  whose presence in this collection is to be ensured.
	 * @see java.util.Collection#add(Object)
	 * @uml.property  name="carta"
	 */
	public boolean addCarta(Carta carta) {
		return this.carta.add(carta);
	}

	/** 
	 * Setter of the property <tt>carta</tt>
	 * @param carta  The carta to set.
	 * @uml.property  name="carta"
	 */
	public void setCarta(Collection carta) {
		this.carta = carta;
	}

	/**
	 * Removes a single instance of the specified element from this collection, if it is present (optional operation).
	 * @param element  to be removed from this collection, if present.
	 * @see java.util.Collection#add(Object)
	 * @uml.property  name="carta"
	 */
	public boolean removeCarta(Carta carta) {
		return this.carta.remove(carta);
	}

	/**
	 * Removes all of the elements from this collection (optional operation).
	 * @see java.util.Collection#clear()
	 * @uml.property  name="carta"
	 */
	public void clearCarta() {
		this.carta.clear();
	}

	/**
	 * @uml.property  name="Color"
	 */
	private String color = "";

	/**
	 * Getter of the property <tt>Color</tt>
	 * @return  Returns the color.
	 * @uml.property  name="Color"
	 */
	public String getColor() {
		return color;
	}

	/**
	 * Setter of the property <tt>Color</tt>
	 * @param Color  The color to set.
	 * @uml.property  name="Color"
	 */
	public void setColor(String color) {
		this.color = color;
	}

		
		/**
		 */
		public void CreateMundo(){
		}

			
			/**
			 */
			public void getMundo(){
			}

}
